package com.example.no1admin.pojo.dto.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import static com.example.no1admin.pojo.dto.validation.BrandValidationConst.*;
import static com.example.no1admin.pojo.dto.validation.BrandValidationConst.MESSAGE_PASSWORD;

@Data
public class UserLoginDTO {
    /**
     * 用户手机号
     */
    @ApiModelProperty("用户手机号")
    @NotNull(message = "手机号不可为空！")
    @Pattern(regexp = REGEXP_TEL,message = MESSAGE_TEL)
    private String tel;
    /**
     * 密码
     */
    @ApiModelProperty("密码")
    @NotNull(message = "密码不可为空，请输入正确的密码！")
    private String password;
}
